<template>
  <div class="config-panel">
    <h4>{{ title }}</h4>
    <el-form label-position="top">
      <el-form-item label="默认昵称">
        <el-input v-model="config.defaultNickname" placeholder="用户未登录时显示的昵称" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "UserInfoConfig",
  props: ['value', 'title'],
  computed: {
    config: {
      get() { return this.value; },
      set(newValue) { this.$emit('input', newValue); }
    }
  }
}
</script>

<style scoped>
.config-panel { border: 1px solid #f0f0f0; padding: 15px; border-radius: 4px; margin-bottom: 20px; }
h4 { margin-top: 0; }
</style>
